package com.apobates.jforum2.troll.threads.biz;

import com.apobates.jforum2.troll.threads.entity.TopicConfig;
import java.util.Optional;

/**
 * 话题配置的业务接口
 *
 * @author xiaofanku
 * @since 20200510
 */
public interface TopicConfigService {
    /**
     * 根据话题查看话题配置
     *
     * @param topicId 话题ID
     * @return
     */
    Optional<TopicConfig> getByTopicId(long topicId);
    
    /**
     * 创建话题配置
     *
     * @param topicId 话题ID
     * @param config 话题配置实例
     * @return
     */
    Optional<Boolean> create(long topicId, TopicConfig config);
}